package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.ParamType;
import com.ruoyi.system.mapper.ParamTypeMapper;
import com.ruoyi.system.service.ParamTypeService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class ParamTypeServiceImpl implements ParamTypeService {

    @Value("${centralDatabase.dbName}")
    private String centralDatabase;

    @Resource
    private ParamTypeMapper paramTypeMapper;

    @Override
    public List<ParamType> findAll() {
        return paramTypeMapper.findAll(centralDatabase);
    }

    @Override
    public List<ParamType> findParamTypeByRegName(String regName){
        return paramTypeMapper.findParamTypeByRegName(centralDatabase,regName);
    }

}
